<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <hdjs/>
    <bootstrap/>
    <js file="__PUBLIC__/yz.js"/>
    <css file="__CONTROL_TPL__/css/css.css"/>
</head>
<body>
<div class="wrap">
    <div class="title-header">编辑分类</div>
    <form action="" method="post" class="form-inline hd-form" id="add-cate-form">
        <table class="table1">
            <tr>
                <th class="w100">分类名称</th>
                <td class="w100">
                    <input type="text" name="cname" class="w200" value="{$oldData.cname}"/> 
                </td>
                <td><span id="hd_cname"></span></td>
            </tr>
            <tr>
                <th class="w100">所属分类</th>
                <td>
                    <select name="pid" class="w200">
                        <option value="0">顶级分类</option>
                        <foreach from='$chooseCate' value='$v'>
                            <option value="{$v.cid}" <if value="$v['cid'] eq $oldData['pid']">selected="selected"</if>>{$v._name}</option>
                        </foreach>    
                    </select>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">分类标题</th>
                <td>
                    <input type="text" name="ctitle" class="w200" value="{$oldData.ctitle}"/>
                </td>
                <td><span id="hd_ctitle"></span></td>
            </tr>
            <tr>
                <th class="w100">分类关键字</th>
                <td>
                    <textarea name="ckeywords" class="form-control" rows="5">{$oldData.ckeywords}</textarea>
                </td>
                <td><span id="hd_ckeywords"></span></td>
            </tr>
            <tr>
                <th class="w100">分类描述</th>
                <td>
                    <textarea name="cdes" class="form-control" rows="5">{$oldData.cdes}</textarea>
                </td>
                <td><span id="hd_cdes"></span></td>
            </tr>
            <tr>
                <th class="w100">分类排序</th>
                <td>
                    <input type="text" name="csort" class="w200" value="100"/>
                </td>
                <td><span id="hd_csort"></span></td>
            </tr>
            <tr>
                <th class="w100">静态目录</th>
                <td>
                    <input type="text" name="htmldir" class="w200" value="{$oldData.htmldir}"/>
                </td>
                <td><span id="hd_htmldir"></span></td>
            </tr>
             <tr>
                <th class="w100">列表页静态</th>
                <td>
                    是：<input type="radio" name="is_listhtml" id="" value="1" <if value="{$oldData.is_listhtml} eq 1">checked="checked"</if>/>
                    &nbsp;
                    否: <input type="radio" name="is_listhtml" id="" value="0" <if value="{$oldData.is_listhtml} eq 0">checked="checked"</if>/>
                </td>
                <td></td>
            </tr>
             <tr>
                <th class="w100">内容页静态</th>
                <td>
                    是：<input type="radio" name="is_archtml" id="" value="1" <if value="{$oldData.is_archtml} eq 1">checked="checked"</if>/>
                    &nbsp;
                    否: <input type="radio" name="is_archtml" id="" value="0" <if value="{$oldData.is_archtml} eq 0">checked="checked"</if>/>
                </td>
                <td></td>
            </tr>
             <tr>
                <th class="w100">是否显示</th>
                <td>
                    是：<input type="radio" name="is_show" id="" value="1" <if value="{$oldData.is_show} eq 1">checked="checked"</if>/>
                    &nbsp;
                    否: <input type="radio" name="is_show" id="" value="0" <if value="{$oldData.is_show} eq 0">checked="checked"</if>/>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">是否显示</th>
                <td>
                    是：<input type="radio" name="is_nav" id="" value="1" <if value="{$oldData.is_nav} eq 1">checked="checked"</if>/>
                    &nbsp;
                    否: <input type="radio" name="is_nav" id="" value="0" <if value="{$oldData.is_nav} eq 0">checked="checked"</if>/>
                </td>
                <td></td>
            </tr>
            <tr><td></td></tr> 
            <tr><td></td></tr> 
            <tr><td></td></tr> 
            <tr><td></td></tr> 
            <tr><td></td></tr>    
        </table>
        <div class="position-bottom">
            <input type="submit" class="hd-success" value="修改"/>
            <input type="button" class="hd-success" value="返回" onclick="history.back()"/>
        </div>
    </form>
</div>
</body>
</html>